﻿namespace CYPlayer
{
    using System;
    using System.ComponentModel;
    using System.Windows;
    using DataClasses;
    using ProjectViews;

    public partial class PlayerWindow : Window
    {
        public PlayerWindow()
        {
            InitializeComponent();
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            transitionConrol.Pages.Add(typeof(PreferencesView).Name, new PreferencesView() { Visibility = Visibility.Collapsed });
            transitionConrol.Pages.Add(typeof(PlayerView).Name, new PlayerView());
            transitionConrol.Pages.Add(typeof(MediaLibView).Name, new MediaLibView() { Visibility = Visibility.Collapsed });
            transitionConrol.StartPage = transitionConrol.Pages["PlayerView"];
        }
    }
}